<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./assets/dist/css/bootstrap.min.css">
    <style>
        #list-box{
            display: none;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="form-group">
            <input type="text" class="form-control" placeholder="请输入关键字" id="search">
            <ul class="list-group" id="list-box">
                <li class="list-group-item">提示文字显示的地方</li>
            </ul>
        </div>
    </div>
    <script src="./js/Ajax.js"></script>
    <script>
        var searchInp = document.getElementById('search');
        var listBox = document.getElementById('list-box');
        searchInp.oninput = function(){
            var key = this.value;
            ajax({
                type: 'git',
                url: 'http://localhost:3000/searchAutoPrompt',
                data: {
                    key: key
                },
                success: function(result){
                    console.log(result);
                }
            })
        }
    </script>
</body>
</html>